<template>
  <div class="foot">
    <span class="undo" v-show="stats === `undo`">{{ index + 1 }}: 未完成</span>
    <span class="right" v-show="stats === `yes`">{{ index + 1 }}: 正确</span>
    <span class="error" v-show="stats === `no`">{{ index + 1 }}: 错误</span>
  </div>
</template>

<script>
export default {
  props: ["index", "stats"],
};
</script>

<style scoped>
.right {
  color: green;
}
.error {
  color: red;
}
.undo {
  color: #ccc;
}
.foot {
  float: left;
}
</style>